package gui;

import java.net.MalformedURLException;
import java.net.URL;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;

public class Message {
	



	public Message(String title, String msg) {
		JOptionPane errorPopup = new JOptionPane();
		errorPopup.showMessageDialog(null, msg, title, JOptionPane.INFORMATION_MESSAGE);
	}
	

	public Message(String msg, Icon icon) {
		JOptionPane errorPopup = new JOptionPane();
		errorPopup.showMessageDialog(null, msg, "George says...", JOptionPane.ERROR_MESSAGE, icon);
	}

	public JOptionPane subtotal(int purchaseId) {
		
		
		JOptionPane errorPopup = new JOptionPane();
		errorPopup.showMessageDialog(null, "Your total:", "George says...", JOptionPane.ERROR_MESSAGE);
	
		return errorPopup;
	}

}



